<?php 
require_once('inc_admin.php');
  //连接数据库		
  connect();
  $sql="select * from category";
  $result = fetch_array($sql) ;
  //var_dump($result);
 ?>
 <!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>添加家具</title>
	<style type="text/css">
 	body{font-size:16px;color:#000;background:  url(php100435/assets/百.jpg) ;}
    
 	header{font-size: 25px;text-align:center;line-height: 50px;color: blue；}
 	</style>

</head>
<body>
<header>添加家具信息</header>
<caption></caption>
<form action="doadd.php" method="post">
<table align="center" width="30%" border=1> 
<tr>
	<th><label for="wyy_name"></label>家具名称</th>
	<td><input type="text" id="wyy_name" name="wyy_name" required></input></td>
</tr>
	<tr>
	    <th>所属类别</th>
		<td>
			<select name="wyy_cid">
				<option>==请选择==</option>
				<!-- <option value="1">*</option>
				<option value="2">**</option>
				<option value="2">***</option>
 -->				 <?php 

				foreach ($result as $one){
					echo '<option value ="'.$one['wyy_cid'].'">'.$one['wyy_cname'].'</option> ';
				}
				 ?> 
				 </select>
				 <tr>
	<th><label for="wyy_brand"></label>家具品牌</th>
	<td><input type="text" id="wyy_brand" name="wyy_brand" required></input></td>
</tr>
<tr>
	<th><label for="wyy_jiajulink"></label>上传照片</th>
	<td><input type="file" id="wyy_jiajulink" name="wyy_jiajulink" ></input></td>
</tr>
				
			
		</td>
	</tr>
				 <tr>
	<th><label for="wyy_intro"></label>家具介绍</th>
	<td><input type="text" id="wyy_intro" name="wyy_intro" ></input></td>
</tr>
<td colspan="2" align="center">
				<input type="submit" value="添加">
				<!-- <input type="submit" value="取消"> -->
			</td>
</table>
</from>
</body>
<ml>
